package me.zhengjie.modules.management.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import me.zhengjie.modules.system.domain.Role;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Set;

/**
 * @website https://docs.auauz.net
 * @Description:
 * @Auther: chao.ji
 * @Date: 2020/12/22
 */
@Entity
@Getter
@Setter
@ToString
@Table(name="mr_dept")
public class MrDept {

    @Id
    @Column(name = "dept_id")
    @ApiModelProperty(value = "ID", hidden = true)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private String id;

    @NotBlank
    @ApiModelProperty(value = "部门名称")
    private String name;


    @ApiModelProperty(value = "上级部门")
    private String pid;

    @NotBlank
    @ApiModelProperty(value = "部门全称")
    private String fullName;








}
